package models

import "gorm.io/gorm"

type SysRole struct {
	gorm.Model
	Name    string `gorm:"type:varchar(20);not null"`
	IsAdmin int8   `gorm:"type:tinyint(1);default:1;not null"`
	Sort    int64  `gorm:"type:int(10);default:0;not null"`
	Remark  string `gorm:"type:varchar(255);default:'';not null"`
}

func (table *SysRole) TableName() string {
	return "sys_role"
}
